<?php
require dirname(__FILE__) . '/../auto_load.php';
class CategoryModelTest extends PHPUnit_Framework_TestCase
{
    private $m;
    
    public function setUp()
    {
        $category_name = 'graphics_card';
        $category_name = 'cell_phone';
        $written_language_tag = 'zh-cmn-Hans-CN';
        $this->m = new CategoryModel($category_name, $written_language_tag);
    }
    
    public function testGetAttributes()
    {
        $r = $this->m->getAttributes();
        var_dump($r);exit;
        $this->assertEquals($r, true);
    }
    
    public function GetCategoryNameById()
    {
        $id = '1';
        $result = $this->category_model->getCategoryNameById($id);
        var_dump($result);
    }
    
    public function GetAllCategoriesIdAndName()
    {
        $result = $this->category_model->getAllCategoriesIdAndName();
        var_dump($result);
    }
    
    public function GetAllCategoriesNameAndDisplay()
    {
        $written_language_id = '1';
        $result = $this->category_model->getAllCategoriesNameAndDisplay($written_language_id);
        var_dump($result);
    }

}
?>
